/*
 Example 15.1
 read RFID card, display data to serial monitor
 tronixstuff.com/tutorials > Chapter 15
 */

int data1 = 0;

void setup()
{
  Serial.begin(9600);
}

void loop() 
{
  if (Serial.available() > 0) {
    // read the incoming number on serial RX
    data1 = Serial.read();
    // display incoming number	
    Serial.print(" ");
    Serial.println(data1, DEC);
  }
}

